class CreateInstalledGadgets < ActiveRecord::Migration
  def self.up
    create_table :installed_gadgets do |t|
      t.references :user
      t.references :gadget
      t.timestamps
    end
    
    InstalledGadget.create(:user_id=>1,
                           :gadget_id=>4)
  end

  def self.down
    drop_table :installed_gadgets
  end
end
